package com.vue.vuedemo.service.impl;

import com.vue.vuedemo.dao.FriendMapper;
import com.vue.vuedemo.pojo.Friend;
import com.vue.vuedemo.service.FriendService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("FriendService")
public class FriendServiceImpl implements FriendService {

    @Resource
    public FriendMapper friendMapper;

    @Override
    public List<Friend> findShow(Integer fUserId) {
        return friendMapper.findShow(fUserId);
    }

    @Override
    public void add(Friend friend) {
        friendMapper.add(friend);
    }

    @Override
    public void del(Integer fId) {
        friendMapper.del(fId);
    }

    @Override
    public List<Friend> SqShow(Integer fFirendID) {
        return friendMapper.SqShow(fFirendID);
    }

    @Override
    public void updateTy(Integer fid) {
        friendMapper.updateTy(fid);
    }

    @Override
    public void updateBty(Integer fid) {
        friendMapper.updateBty(fid);
    }

    @Override
    public List<Friend> BtyShow(Integer fFirendID) {
        return friendMapper.BtyShow(fFirendID);
    }

    @Override
    public Integer FanAdd(Friend friend) {
        return friendMapper.FanAdd(friend);
    }

    @Override
    public Integer countFriendWei(Integer fFirendID) {
        return friendMapper.countFriendWei(fFirendID);
    }

    @Override
    public Integer countFriendNo(Integer fUserId) {
        return friendMapper.countFriendNo(fUserId);
    }
}
